FROM openjdk:8-jdk-alpine

RUN echo -e "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main\n\
https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/community" > /etc/apk/repositories

ENV LANG zh_CN.UTF-8
ENV LANGUAGE zh_CN:zh
ENV LC_ALL zh_CN.UTF-8
RUN apk add --update ttf-dejavu && rm -rf /var/cache/apk/*

ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYSENV \
    SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
    JAVA_OPTS="" \
    TZ="Asia/Shanghai"
COPY "build/libs/*" "/app/app.jar"
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app/app.jar"]

